import type { RouteRecordRaw } from 'vue-router'
import { Layout } from '@/layouts/index.ts'
const staticRoutes: RouteRecordRaw[] = [

  {
    path: '/',
    component: Layout,
    redirect: '/home',
    name: 'index',
    children: [
      {
        path: '/home',
        name: 'Home',
        component: () => import('@/pages/home/index.vue'),
        meta: {
          title: 'Home',
        },
      },



      {
        path: '/home/page2',
        name: 'page2',
        component: () => import('@/pages/home/page2.vue'),
        meta: {
          title: 'page2',
        },
      },
      {
        path: '/home/page3',
        name: 'page3',
        component: () => import('@/pages/home/page3.vue'),
        meta: {
          title: 'page3',
        },
      },
      {
        path: '/home/page4',
        name: 'page4',
        component: () => import('@/pages/home/page4.vue'),
        meta: {
          title: 'page4',
        },
      },

      {
        path: '/ceshi1',
        name: 'ceshi1',
        component: () => import('@/pages/ceshi/ceshi1.vue'),
        meta: {
          title: 'ceshi1',
        },
      },
      {
        path: '/ceshi2',
        name: 'ceshi2',
        component: () => import('@/pages/ceshi/ceshi2.vue'),
        meta: {
          title: 'ceshi2',
        },
      },











    ],
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/pages/login/index.vue'),
  },
  {
    path: '/:pathMatch(.*)',
    component: () => import('@/pages/exception/error.vue'),
  },
  {
    path: '/newMap',
    component: () => import('@/pages/newMap/index.vue'),
  },

]

export default staticRoutes
